package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsGoods;

/**
 * 商品业务--SPU
 * @author mkr
 * @version V1.0
 * @Project java2203-mkr
 * @Package com.qf.service
 * @Description:
 * @Date 2022/6/17 9:28
 */
public interface GoodsService {

    /**
     * 统计商品数量
     * @return
     */
    public int countGoods();

    public IPage<DtsGoods> selectGoodsPage(String goods_sn , String name , Integer page,
                                           Integer limit, String sort, String order);

    /**
     * 修改
     * @param goods
     * @return
     */
    public int update(DtsGoods goods);

    /**
     * 删除
     * @param key
     */
    public void deleteByKey(String key);
}
